package com.aisile.common.exception;

import com.aisile.model.common.dtos.ResponseResult;

/**
 * @Auther:yry
 * @Date:2024/4/24 0024
 * @VERSON:1.0
 */
public class CustomException extends RuntimeException {
    // 利用构造方法的方式 传递 code 和 msg参数

    private ResponseResult responseResult;

    public CustomException(Integer code,String errorMsg){
        responseResult = new ResponseResult(code,errorMsg);
    }

    public ResponseResult getResponseResult(){
        return responseResult;
    }
}
